import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
// 导入页面组件
const test = () => import('../views/test.vue')
const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        redirect: "/test"
    },
    {
        path: "/test",
        name: 'test',
        component: test,
    }
]
const router = createRouter({
    history: createWebHashHistory(),
    routes: routes
})

export default router
